
#ifndef		__AREA_H
#define		__AREA_H

#include "Tile.h"
#include <vector>
#include <sstream>

class Object;

class Area {

	private:
		SDL_Surface* tilesetSurface;
		Tileset		 tileset;
		Tile**		 tiles;

		std::vector<Object*> areaObjects;

		int areaWidth;
		int areaHeight;

		bool initTiles();

	public:
		Area();

		bool loadArea(char* areaFile);
		void loop();
		void render(SDL_Surface*, int initX, int initY);
		void cleanup();

		int getWidth(){ return areaWidth; }
		int getHeight(){ return areaHeight; }

		bool saveArea(char* fileName);
};

#endif